package com.liu;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.AutoConfigurationExcludeFilter;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration;
import org.springframework.boot.context.TypeExcludeFilter;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

/**
 * @Author liuhaoran
 * @Date 2020/3/3 - 15:19
 */
// @SpringBootApplication
    @SpringBootConfiguration
    //排除ThymeleafAutoConfiguration.class
    @EnableAutoConfiguration(exclude = {ThymeleafAutoConfiguration.class})
 @ComponentScan(
         excludeFilters = {@ComponentScan.Filter(
                 type = FilterType.CUSTOM,
                 classes = {TypeExcludeFilter.class}
         ), @ComponentScan.Filter(
                 type = FilterType.CUSTOM,
                 classes = {AutoConfigurationExcludeFilter.class}
         )}
 )
public class App {
    public static void main(String [] args){
        SpringApplication.run(App.class,args);
    }
}
